<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
         img{
             position:relative;
            width: 100%;
            height: 100%;
        }
        div{
          position :absolute;
            top: 300px;
            right: 600px;
        }
        h1{
            text-align: center;
            color: lightgrey;
        }
       span{
        color: aliceblue;
       }

    </style>
</head>
<body>
<img src="../../static/images/login.jpg">
<div>

    <form action="/loginCheck" method="get">
        <h1>&nbsp;&nbsp;&nbsp;登录</h1>
        <span>用户账号</span>
        <input type="text" value="" name="username"> <br>
        <span>用户密码</span>
<input type="password" value="" name="password"> <br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit">
        <a href="/homepage"><input type="button" value="去往主页"></a>
       <a href="/register"><input type="button" value="我要注册"></a><br>
        <span th:text="${error}">您还未登录</span>

    </form>
</div>
</body>
</html>